var stuIdToken = localStorage.getItem("stu_id_token");
var loginToken = localStorage.getItem("login_token");

//添加地址
function create_address(address){
	var url = ADDRESS_API+'/create.do';
	address.stuIdToken = stuIdToken;
	address.loginToken = loginToken;
	return httpPost(url,address);
}

//查询地址
function find_address(id){
	var url = ADDRESS_API+'/find.do'; 
	var parms = {stuIdToken:stuIdToken,loginToken:loginToken,id:id};
	return httpGet(url);
}

//删除地址
function delete_address(id){
	var url = ADDRESS_API+'/delete.do'; 
	var parms = {stuIdToken:stuIdToken,loginToken:loginToken,id:id};
	return httpGet(url);
}

//查询我的地址列表
function my_address_list(){
	var url = ADDRESS_API+'/findAddressList.do'; 
	var parms = {stuIdToken:stuIdToken,loginToken:loginToken};
	return httpGet(url);
}
